package com.hcb.micro.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hcb.micro.dao.interfaceClass.BannerProductMapper;
import com.hcb.micro.dto.BannerProduct;
import com.hcb.micro.service.IBannerProductService;

@Service("BannerProductService")
public class BannerProductServiceImpl implements IBannerProductService {

	@Autowired
	BannerProductMapper BannerProductMapper;
	
	@Override
	public int deleteByPrimaryKey(Integer id) {
		return BannerProductMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(BannerProduct record) {
		return BannerProductMapper.insert(record);
	}

	@Override
	public int insertSelective(BannerProduct record) {
		return BannerProductMapper.insertSelective(record);
	}

	@Override
	public BannerProduct selectByPrimaryKey(Integer id) {
		return BannerProductMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(BannerProduct record) {
		return BannerProductMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(BannerProduct record) {
		return BannerProductMapper.updateByPrimaryKey(record);
	}

	@Override
	public List<BannerProduct> selectByPara(Map<String, Object> para) {
		return BannerProductMapper.selectByPara(para);
	}

}
